#ifndef LEETCODE_CN_CPP_UTILS_TREE_H
#define LEETCODE_CN_CPP_UTILS_TREE_H

struct TreeNode
{
    int val;
    TreeNode *left;
    TreeNode *right;
    TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};

void deleteTree(TreeNode *root);

bool treeEqual(TreeNode *root1, TreeNode *root2);

#endif //LEETCODE_CN_CPP_UTILS_TREE_H
